/**
* This is the logger for the OBDX Framework.
* @module baseLogger
* @requires ojs/ojcore
*/
define(["ojs/ojcore"], function(oj) {
"use strict";
/**
* @summary This is the constructor for the logger.
* @class
* @alias BaseLogger
* @memberof module:baseLogger
* @requires ojs/ojcore
* @description This constructor returns three methods:
* info : Used as Logger.info, where Logger is the instance of BaseLogger.
* error : Used as Logger.error, where Logger is the instance of BaseLogger.
* warn : Used as Logger.warn, where Logger is the instance of BaseLogger.
*/
var BaseLogger = function() {
oj.Logger.option("level", oj.Logger["@@LOGGING_LEVEL"] || oj.Logger.LEVEL_INFO);
return {
info: oj.Logger.info,
error: oj.Logger.error,
warn: oj.Logger.warn
};
};
return new BaseLogger();
});